	<div class="fui-header">
		<div class="fui-header-left" ng-click="pagedata.showarea =1">
			<i class=""></i>
			<span ng-show="pagedata.pcd.district" style="font-size:0.65rem">{{pagedata.pcd.district}}</span>
			<span ng-show="!pagedata.pcd.district" style="font-size:0.65rem">{{pagedata.pcd.city || '广州市'}}</span>
			<i class="icon jinyunicon icon-moreunfold"></i>
		</div>
		<div class="title">
			<form method="post">
				<div class="searchbar searchbar-active" style="margin:0.5rem 0.5rem 0 3.5rem;">
					<div class="search-input">
						<i id="searchsub" class="icon jinyunicon icon-search" ng-click="access(pagedata.op,made_query(pagedata.params))" style="font-size:0.9rem;"></i>
						<input type="search" id="search" placeholder="输入关键字..." ng-model="pagedata.keyword" ng-click="getlist(pagedata.keyword)" >
					</div>
				</div>
			</form>
		</div>
	</div>
	<div style="bottom: 1.2rem;position: absolute;top: 2.28rem;left: 0;right: 0;overflow-y: auto;background: #f3f3f3;">
		<div style="display: block;">
			<ul style="background: #fff;list-style: none;">
				<li ng-repeat="row in pagedata.spots" style="border-bottom: 1px solid #e6e6e6;">
					<a href="javascript:;" ng-click="access_json('jy_tour/spot.detail//id='+row.id)" style="display: -webkit-box;padding: 0.4rem;color: #333;text-decoration: none;-webkit-tap-highlight-color: rgba(255,0,0,0);">
						<div style="width: 94px;height: 64px;position: relative;overflow: hidden;background: #e7e7e7;">
							<img ng-src="{{tomedia(row.thumb)}}" alt="{{row.title}}" style="max-width: 100%;max-height: 100%;position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);border: 0;">
						</div>
						<div style="-webkit-box-flex: 1;padding-left: 6.4px;">
							<h4 style="font-weight: normal;height: 1.5rem;line-height: 1.5rem;overflow: hidden;white-space: normal;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;font-size: 0.7rem;margin-top:0;">{{row.title}}</h4>
							<p style="height: 17px;margin-top: 1.28px;">
								<span style="display: inline-block;color: #999;height: 17px;line-height: 17px;margin-right: 11.5px;font-size: 0.7rem;">满意度:{{row.manyidu || '0'}}%</span>
								<span style="display: inline-block;color: #999;height: 17px;line-height: 17px;margin-right: 11.5px;font-size: 0.7rem;">销量:{{row.sellnum || '0'}}</span>
								<span ng-if="row.price" style="margin-right: 0;display: inline-block;color: #999;height: 17px;line-height: 17px;font-size: 0.7rem;text-align: right;float: right;">
									<strong style="color: #f60;font-weight: normal!important;font-style: normal!important;">
										&yen;<em style="padding: 0 1.6px;font-size: 0.8rem;">{{row.price}}</em>
									</strong>起
								</span>
								<span ng-if="!row.price" style="margin-right: 0;display: inline-block;color: #999;height: 17px;line-height: 17px;font-size: 0.7rem;text-align: right;float: right;">
									<strong style="color: #f60;font-weight: normal!important;font-style: normal!important;"><em style="padding: 0 1.6px;font-size: 0.8rem;">电询</em></strong>
								</span>
							</p>                  
						</div>
					</a>
				</li>
			</ul>
			<div style="padding: 12.8px 0;display: none;">
				<div style="width: 72.5px;height: 80px;margin: 0 auto;background: url(../images/no-content-page.png) center no-repeat;background-size: contain;"></div>
				<span style="color: #c8c8c8;padding-top: 8.5px;text-align: center;font-size: 0.32rem;">此页面暂无内容</span>
			</div>
		</div>
	</div>
<div ng-include="sys_html('_footer')"></div>
<!--
<div class="fui-navbar" style="background: #2e343b;">
    <div style="float: left;width: 33.333333%;" data-floor="dest" onclick="$('#dest-page').modal();"> 
		<span style="color: #fff;display: block;text-align: center;padding: 0.16rem 0;font-size: 0.6rem;box-sizing: border-box;">
			<i style="background-size: contain;display: block;width: 0.4267rem;height: 0.4267rem;margin: 0 auto 0.15rem;"></i>目的地
		</span> 
	</div> 
	<div style="float: left;width: 33.333333%;" data-floor="sort" onclick="$('#sort-page').modal();"> 
		<span style='color: #fff;display: block;text-align: center;padding: 0.16rem 0;font-size: 0.6rem;box-sizing: border-box;'>
			<i style="background-size: contain;display: block;width: 0.4267rem;height: 0.4267rem;margin: 0 auto 0.15rem;"></i>排序
		</span> 
	</div> 
	<div style="float: left;width: 33.333333%;" data-floor="filter" onclick="$('#filter-page').modal();"> 
		<span style='color: #fff;display: block;text-align: center;padding: 0.16rem 0;font-size: 0.6rem;box-sizing: border-box;'>
			<i style="background-size: contain;display: block;width: 0.4267rem;height: 0.4267rem;margin: 0 auto 0.15rem;"></i>筛选
		</span> 
	</div>  
</div>
-->
<div id="dest-page" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;bottom:2rem;top:0;">
		<div class="modal-bottom" style="display: block;position: absolute;top: 0;right: 0;bottom:0;left: 0;background: #fff;">
			<div class="fui-header">
				<div class="fui-header-left" ng-click="goback()">
					<a class="back"></a>
				</div>
				<div class="title">目的地</div>
				<div class="fui-header-right"></div>
			</div>
			<div style="height: 0.8rem;background: #f2f2f2;top:2rem;">
				<a href="javascript:;" style="text-decoration: none;-webkit-tap-highlight-color: rgba(255,0,0,0);float: left;color: #999;height: 0.8rem;line-height: 0.8rem;padding: 0 0.84rem 0 0.4rem;font-size: 0.32rem;background: url(../images/dest-crumbs-ico.png) right no-repeat;">目的地</a>
			</div> 
			<div style="position: absolute;top: 2.08rem;right: 0;bottom: 1.44rem;left: 0;overflow-y: auto;background: #fff;"> </div> 
			<div style="display: -webkit-box;height: 1.44rem;position: absolute;right: 0;bottom: 0;left: 0;padding: 0.1734rem 0.2667rem;background: #fafafa;"> 
				<a href="javascript:;" id="dest_back_btn" style="display: none;color: #8a8a8a;width: 2.32rem;height: 1.0667rem;line-height: 1.0667rem;text-align: center;border: 1px solid #b8b8b8;border-radius: 10px;font-size: 0.3467rem;">返回上一级</a> 
				<a href="javascript:;" style="display: block;color: #fff;height: 1.0667rem;line-height: 1.0667rem;margin-left: 0.2667rem;text-align: center;-webkit-box-flex: 1;border-radius: 10px;font-size: 0.3467rem;background: #ff9a14;">确定</a> 
			</div> 
		</div>
	</div>
</div>
<div id="filter-page" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;bottom:2rem;top:0;">
		<div class="modal-bottom">
			<div class="fui-header">
				<div class="fui-header-left" ng-click="goback()">
					<a class="back"></a>
				</div>
				<div class="title">筛选</div>
				<div class="fui-header-right"></div>
			</div>
			<div style="position: absolute;top: 2.28rem;right: 0;bottom: 1.44rem;left: 0;background: #fff;"> 
				<div style="width: 89.549px;position: absolute;top: 0;bottom: 0;left: 0;overflow-y: auto;background: #f2f6f9;" > 
					<ul style="list-style: none;">   
						<li data-sub="attrid_6" style="border-left: 0.0934rem solid #3daff0;background: #fff;color: #666;height: 34.125px;line-height: 34.125px;padding: 0 6.4px;position: relative;font-size: 0.7rem;">签证攻略</li> 
						<li data-sub="attrid_10" style="color: #666;height: 34.125px;line-height: 34.125px;padding: 0 6.4px;position: relative;font-size: 0.7rem;">攻略信息</li>  
					</ul> 
				</div> 
				<div style="position: absolute;top: 0;right: 0;bottom: 0;left: 89.6px;overflow-y: auto;background: #fff;">  
					<ul id="sub_attrid_6" style="padding: 0 8.534px;list-style: none;"> 
						<li data-id="0" selfield="attrid_6" style="color: #42b1f0;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">全部
							<i class="on"></i>
						</li>   
						<li data-id="7" selfield="attrid_6" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">签证常见问题
							<i class="on"></i>
						</li>  
						<li data-id="8" selfield="attrid_6" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">签证新闻动态
							<i class="on"></i>
						</li> 
						<li data-id="9" selfield="attrid_6" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">签证办理流程
							<i class="on"></i>
						</li>  
					</ul>  
					<ul id="sub_attrid_10"  style="display: none;padding: 0 8.534px;list-style: none;"> 
						<li data-id="0" selfield="attrid_10" style="color: #42b1f0;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">全部
							<i class="on"></i>
						</li>   
						<li data-id="11" selfield="attrid_10" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">门票价格
							<i class="on"></i>
						</li>  
						<li data-id="12" selfield="attrid_10" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">交通地图
							<i class="on"></i>
						</li>  
						<li data-id="13" selfield="attrid_10" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">美食文化
							<i class="on"></i>
						</li>  
						<li data-id="14" selfield="attrid_10" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">住宿攻略
							<i class="on"></i>
						</li>  
						<li data-id="15" selfield="attrid_10" style="color: #666;height: 33.125px;line-height: 33.125px;padding: 0 6.4px;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.7rem;">旅游攻略
							<i class="on"></i>
						</li>  
					</ul>  
				<!--活动状态--> 
				</div> 
			</div> 
			<div style="display: -webkit-box;height: 34.98px;position: absolute;right: 0;bottom: 0;left: 0;padding: 5.549px 8.534px;background: #fafafa;"> 
				<a href="javascript:;" id="filter_back_btn" style="display: block;color: #8a8a8a;width: 72.234px;height: 28px;line-height: 28px;;text-align: center;border: 1px solid #b8b8b8;">恢复默认</a> 
				<a href="javascript:;" style="display: block;color: #fff;height: 28px;line-height: 28pxrem;margin-left: 8.534px;text-align: center;-webkit-box-flex: 1;border-radius: 10px;background: #ff9a14;">确定</a> 
			</div> 
		</div>	
	</div>
</div>
<div id="sort-page" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;bottom:2rem">
		<div style="height:4rem;">
			<ul style="position: absolute;right: 0;bottom: 0;left: 0;padding: 0 0.4rem;background: #fff;list-style: none;"> 
				<li data-id="0" selfield="sorttype" style="color: #666;height: 25.875px;line-height: 25.875px;padding: 0 0.2rem;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.8rem;">综合排序
					<em class="ico"></em>
				</li> 
				<li data-id="1" selfield="sorttype" style="color: #666;height: 25.875px;line-height: 25.875px;padding: 0 0.2rem;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.8rem;">点击量
					<em class="ico"></em>
				</li> 
				<li data-id="2" selfield="sorttype" style="color: #666;height: 25.875px;line-height: 25.875px;padding: 0 0.2rem;position: relative;border-bottom: 1px solid #e6e6e6;font-size: 0.8rem;">最近更新
					<em class="ico"></em>
				</li> 
			</ul> 
		</div>	
	</div>
</div>
<div class="fui-page  fui-page-current page-goods-list" ng-if="pagedata.showarea ==1">
<div class="fui-header">
		<div class="fui-header-left" ng-click="pagedata.showarea =0">
			<a class="back"></a>
		</div>
		<div class="title">
			<form method="post">
					<div class="searchbar searchbar-active">
					<div class="search-input">
						<i class="icon jinyunicon icon-search" style="font-size: 1.0rem;"></i>
						<input type="search" id="search" placeholder="输入关键字..." value="">
					</div>
					</div>
			</form>
		</div>
		<div class="fui-header-right" data-nomenu="true">
			<a href="javascript:;"><i class="icon jinyunicon icon-saoyisao2" id="listblock" style="font-size: 1.0rem;"></i></a>
		</div>
</div>
<div class="fui-content" style="top:1.3rem">
		<div class="weui_cells weui_cells_access">
				<a class="weui_cell" href="javascript:;">
					<div class="weui_cell_bd weui_cell_primary" style="padding:0">
						<span>当前定位/选择地区：{{pagedata.pcd.city || '广州市'}}</span>
					</div>
					<div class="weui_cell_ft" ng-click="toogle(post,'show')">
						选择县区
					</div>
				</a>
				<div class="row margin0" ng-show="post.show">
						<div class="jy-3" ng-repeat="value in pagedata.province[pagedata.pcd.province][pagedata.pcd.city]">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea(pagedata.pcd.province,pagedata.pcd.city,value);pagedata.showarea = 0;">
									<div>{{value}}</div>
									<div class="clear"></div>
							</div>
						</div>
				</div>
			</div>
			<div class="weui_cells_title">热门地区</div>
			<div class="weui_cells">
				<div class="row margin0">
					<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea('广东省','深圳市','');pagedata.showarea = 0;">
									<div>深圳市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea('上海市','上海市','');pagedata.showarea = 0;">
									<div>上海市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea('广东省','东莞市','');pagedata.showarea = 0;">
									<div>东莞市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea('北京市','北京市','');pagedata.showarea = 0;">
									<div>北京市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea('江苏省','南京市','');pagedata.showarea = 0;">
									<div>南京市</div>
									<div class="clear"></div>
							</div>
						</div>
						<div class="jy-3">
							<div class="yuyue-duan" style="width:auto" ng-click="selectarea('江苏省','杭州市','');pagedata.showarea = 0;">
									<div>杭州市</div>
									<div class="clear"></div>
							</div>
						</div>
				</div>
			</div>
			<div ng-repeat="(value,data) in pagedata.province">
				<div class="weui_cells_title">{{value}}</div>
				<div class="weui_cells">
					<div class="row margin0">
						<div class="jy-3" ng-repeat="(city,data) in pagedata.province[value]">
								<div class="yuyue-duan" style="width:auto" ng-click="selectarea(value,city,'');pagedata.showarea = 0;">
										<div>{{city}}</div>
										<div class="clear"></div>
								</div>
						</div>
					</div>
				</div>
		    </div>
</div>
</div>
<script>
// 百度地图API功能
window.scope.location(function(res){
	if(!scope.pagedata.pcd.city){
		scope.$apply(function(){
			scope.pagedata.pcd.province = res.addressComponents.province;
			scope.pagedata.pcd.city = res.addressComponents.city;
		});
	}
	//getlist(res.lat_lng);
});
scope.selectarea = function(province,city,district){
	//scope.$apply(function(){
		scope.pagedata.pcd.province = province;
		scope.pagedata.pcd.city = city;
		scope.pagedata.pcd.district = district;
		getlist(province,city);
	//});
}
var page = 1;
function getlist(province,city){
		var params = {
					'plugin':'jy_tour',
					'action':'spot.list',
					'op':'getlist',
					'data':{
						'province':province,
						'city':city,
					},
					'callback':function(data){
							if(data.error !=1){
							scope.pagedata.spots =[];
							 for (var i=0;i<data.spots.length;i++){
									scope.pagedata.spots.push(data.spots[i]);
								} 
								if(page >1){
									$(".merchgroup").animate({scrollTop:0},300);
								}
								page++;
								scope.loading = false;
								scope.$apply();
							}else{
								onsole.log('error');
							};
					}
		}
		scope.post_json(params);
}

//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>